package org.jeecg.modules.param.member.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.param.member.entity.BikeMemberCardLog;
import org.jeecg.modules.param.member.mapper.BikeMemberCardLogMapper;
import org.jeecg.modules.param.member.service.IBikeMemberCardLogService;
import org.jeecg.modules.param.member.vo.*;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 会员卡操作日志表
 * @Author: jeecg-boot
 * @Date:   2021-12-18
 * @Version: V1.0
 */
@Service
public class BikeMemberCardLogServiceImpl extends ServiceImpl<BikeMemberCardLogMapper, BikeMemberCardLog> implements IBikeMemberCardLogService {

    @Resource
    private BikeMemberCardLogMapper bikeMemberCardLogMapper;
    /**
     * 会员卡 发卡报表
     * */
    @Override
    public IPage<BikeMemberCardLogToRsp> toCardDetailList(Page<BikeMemberCardLogToRsp> page, CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.toCardDetailList(page,cardDetailRea);
    }
    /**
     * 会员卡 换卡报表
     * */
    @Override
    public IPage<BikeMemberCardLogInRsp> inCardDetailList(Page<BikeMemberCardLogInRsp> page, CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.inCardDetailList(page,cardDetailRea);
    }
    /**
     * 会员卡 退卡报表
     * */
    @Override
    public IPage<BikeMemberCardLogReturnRsp> refundCardDetailList(Page<BikeMemberCardLogReturnRsp> page, CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.refundCardDetailList(page,cardDetailRea);
    }
    /**
     * 会员卡 挂失报表
     * */
    @Override
    public IPage<BikeMemberCardLogLossRsp> lossCardDetailList(Page<BikeMemberCardLogLossRsp> page, CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.lossCardDetailList(page,cardDetailRea);
    }
    /**
     * 会员卡 发卡报表导出
     * */
    @Override
    public List<BikeMemberCardLogToRsp> exportXlsToCardDetail(CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.exportXlsToCardDetail(cardDetailRea);
    }
    /**
     * 会员卡 换卡报表 导出
     * */
    @Override
    public List<BikeMemberCardLogInRsp> exportXlsInCardDetail(CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.exportXlsInCardDetail(cardDetailRea);
    }

    @Override
    public List<BikeMemberCardLogReturnRsp> exportXlsReturnCardDetail(CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.exportXlsReturnCardDetail(cardDetailRea);
    }

    @Override
    public List<BikeMemberCardLogLossRsp> exportXlsLossCardDetail(CardDetailReq cardDetailRea) {
        return bikeMemberCardLogMapper.exportXlsLossCardDetail(cardDetailRea);
    }
}
